using System;
using System.Collections.Generic;
using System.Text;


namespace XFlot
{
    public class Point : IComparer<Point>
    {
        private decimal x;
        private decimal y;
        private string description;

        public decimal X {
            set { this.x = value; }
            get { return this.x;}
        
        }

        public decimal Y {
            set { this.y = value; }
            get{return this.y;}
        }

        public string Description {
            set { this.description = value; }
            get { return this.description; }
        }

        public Point() { }
        public Point(decimal x,decimal y,string d) { 
            this.x=x;
            this.y=y;
            this.description=d;
        
        }

        public Point(int x, int y, string d)
        {
            this.x = Convert.ToDecimal(x);
            this.y = Convert.ToDecimal(y);
            this.description = d;

        }

        public Point(int x, double y, string d)
        {
            this.x = Convert.ToDecimal(x);
            this.y = Convert.ToDecimal(y);
            this.description = d;

        }

        public int Compare(Point p1, Point p2)
        {
            return p1.Y > p2.Y ? 0 : 1;
        }
    }
}
